import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'

Vue.config.productionTip = false

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

import axios from 'axios'
axios.defaults.withCredentials = true;//位置必须要在添加到vue原型对象的前面
Vue.prototype.$axios = axios

import Print from 'vue-print-nb'
Vue.use(Print);

import htmlToPdf from "./utils/htmlpdf"
Vue.use(htmlToPdf)

// 全屏滚动 vue-fullpage.js
import 'fullpage.js/vendors/scrolloverflow';
import VueFullpage from 'vue-fullpage.js'
Vue.use(VueFullpage)

import less from 'less'
Vue.use(less)

import echarts from 'echarts'
Vue.prototype.$echarts = echarts;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
